﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class EnumExtensions
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class EnumExtensions
   ">
    <meta name="generator" content="docfx 2.59.2.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <link rel="stylesheet" href="../../styles/socialbar.css">
    <link rel="stylesheet" href="../../styles/header.css">
    <link rel="stylesheet" href="../../styles/version.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,100italic,300italic,400italic" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../toc.html">
    <meta property="docfx:uid" content="Emby.Media.Common.Extensions.EnumExtensions">
    
    <meta property="docfx:rel" content="../../">
    
    <script type="text/javascript" src="../../nav.js"></script>
    <script type="text/javascript" src="../toc.js"></script>
  
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <div class="mb-socials-heading" style="height: 40px;">
        	<div class="mb-socials-heading-inner container">
        		<div class="mb-socials-heading-right">
        			<div class="mb-socials-list">
                          
        				<div class="mb-socials-item facebook">
        					<a class="mb-socials-item-link" target="_blank" href="https://facebook.com/embyapp"></a>
        					<div class="mb-socials-item-popup">
        						<span>Facebook</span>
        					</div>
        				</div><div class="mb-socials-item twitter">
        					<a class="mb-socials-item-link" target="_blank" href="https://twitter.com/embyapp"></a>
        					<div class="mb-socials-item-popup">
        						<span>Twitter</span>
        					</div>
        				</div>
        				<div class="mb-socials-item pinterest">
        					<a class="mb-socials-item-link" target="_blank" href="https://www.pinterest.com/emby0240/emby-news/"></a>
        					<div class="mb-socials-item-popup">
        						<span>Pinterest</span>
        					</div>
        				</div>
        				<div class="mb-socials-item tumblr">
        					<a class="mb-socials-item-link" target="_blank" href="https://embyapp.tumblr.com/"></a>
        					<div class="mb-socials-item-popup">
        						<span>Tumblr</span>
        					</div>
        				</div>
        				<div class="mb-socials-item github">
        					<a class="mb-socials-item-link" target="_blank" href="https://github.com/MediaBrowser"></a>
        					<div class="mb-socials-item-popup">
        						<span>GitHub</span>
        					</div>
        				</div><div class="mb-socials-item rss">
        					<a class="mb-socials-item-link" target="_blank" href="https://emby.media/blog.xml"></a>
        					<div class="mb-socials-item-popup">
        						<span>RSS</span>
        					</div>
        				</div>
                          
        			</div>
        		</div>
        	</div>
        </div>
        <div class="container">
        	<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
        		  
        		  <a class="navbar-brand" href="../../index.html">
        		    <img id="logo" class="svg" src="../../images/emby_dev_logo.png" alt="">
        		  </a>
        		  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
        			<span class="sr-only">Toggle navigation</span>
        			<span class="icon-bar"></span>
        			<span class="icon-bar"></span>
        			<span class="icon-bar"></span>
        		  </button>
        		<div class="collapse navbar-collapse" id="navbar">
        			
        			<ul class="nav level1 navbar-nav">
        			      <li class="nav-item">
        			          <a class="nav-link" href="../../index.html" title="DEV Home">DEV Home</a>
        			      </li>
        			      <li class="nav-item">
        			          <a class="nav-link" href="../../doc/index.html" title="Documentation">Documentation</a>
        			      </li>
        			      <li class="nav-item">
        			          <a class="nav-link" href="../../reference/index.html" title="Reference">Reference</a>
        			      </li>
        			      <li class="nav-item">
        			          <a class="nav-link" href="../../download/index.html" title="Download">Download</a>
        			      </li>
        			</ul>		</div>
        	</nav>
        </div>
        <div class="nav-overlay d-none"></div>        
        <div class="subnav navbar navbar-default">
          <div class="container">
            <div class="hide-when-search" id="breadcrumb">
        	  <ul class="breadcrumb">
        		<li></li>
        	  </ul>
        	</div>
        
        	<div class="breadcrumpsearch">
        	  <form class="navbar-form navbar-right" role="search" id="search">
        		<div class="form-group">
        		  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
        		</div>
        	  </form>
        	</div>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list">Search Results for <span></span></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Emby.Media.Common.Extensions.EnumExtensions">
<div class="refdoc">
  
  
  <h1 id="Emby_Media_Common_Extensions_EnumExtensions" data-uid="Emby.Media.Common.Extensions.EnumExtensions" class="text-break">Class EnumExtensions
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Object</a></div>
    <div class="level1"><span class="xref">EnumExtensions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Emby.Media.Common.Extensions.html">Emby.Media.Common.Extensions</a></h6>
  <h6><strong>Assembly</strong>: Emby.Media.Model.dll</h6>
  <h5 id="Emby_Media_Common_Extensions_EnumExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class EnumExtensions</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_CreateLevelInformation_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.CreateLevelInformation*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_CreateLevelInformation_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.CreateLevelInformation(System.Enum)">CreateLevelInformation(Enum)</h4>
  <div class="markdown level1 summary"><p>Creates a <a class="xref" href="Emby.Media.Model.Types.LevelInformation.html">LevelInformation</a> object for codec level enum members based on attributes defined for this member.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static LevelInformation CreateLevelInformation(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Emby.Media.Model.Types.LevelInformation.html">LevelInformation</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_CreateProfileInformation_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.CreateProfileInformation*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_CreateProfileInformation_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.CreateProfileInformation(System.Enum)">CreateProfileInformation(Enum)</h4>
  <div class="markdown level1 summary"><p>Creates a <a class="xref" href="Emby.Media.Model.Types.ProfileInformation.html">ProfileInformation</a> object for codec profile enum members based on attributes defined for this member.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static ProfileInformation CreateProfileInformation(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Emby.Media.Model.Types.ProfileInformation.html">ProfileInformation</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_EnumFromAlias_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumFromAlias*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_EnumFromAlias__1_System_String_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumFromAlias``1(System.String)">EnumFromAlias&lt;T&gt;(String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T? EnumFromAlias&lt;T&gt;(string value)
    where T : struct, Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;T&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_EnumFromStringOrAlias_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumFromStringOrAlias*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_EnumFromStringOrAlias__1_System_String_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumFromStringOrAlias``1(System.String)">EnumFromStringOrAlias&lt;T&gt;(String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static T? EnumFromStringOrAlias&lt;T&gt;(string value)
    where T : struct, Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;T&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_EnumListFromStringOrAlias_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumListFromStringOrAlias*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_EnumListFromStringOrAlias__1_System_String_System_Char___" data-uid="Emby.Media.Common.Extensions.EnumExtensions.EnumListFromStringOrAlias``1(System.String,System.Char[])">EnumListFromStringOrAlias&lt;T&gt;(String, Char[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static List&lt;T&gt; EnumListFromStringOrAlias&lt;T&gt;(string value, params char[] splitChars)
    where T : struct, Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">Char</a>[]</td>
        <td><span class="parametername">splitChars</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;T&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_FindByMimeType_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.FindByMimeType*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_FindByMimeType__1___0_System_String_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.FindByMimeType``1(``0,System.String)">FindByMimeType&lt;T&gt;(T, String)</h4>
  <div class="markdown level1 summary"><p>Finds members of a specified enum that are having the specified mime type defined in by a <a class="xref" href="Emby.Media.Model.Attributes.MimeTypesAttribute.html">MimeTypesAttribute</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;T&gt; FindByMimeType&lt;T&gt;(this T enumType, string mimeType)
    where T : Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">enumType</span></td>
        <td><p>Type of the enum to search.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><span class="parametername">mimeType</span></td>
        <td><p>Mime type to search for.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_FindByRelatedGuid_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.FindByRelatedGuid*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_FindByRelatedGuid__1___0_System_Guid_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.FindByRelatedGuid``1(``0,System.Guid)">FindByRelatedGuid&lt;T&gt;(T, Guid)</h4>
  <div class="markdown level1 summary"><p>Finds members of a specified enum that are having the specified related Guid type defined in by a <a class="xref" href="MediaBrowser.Model.Attributes.RelatedGuidAttribute.html">RelatedGuidAttribute</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;T&gt; FindByRelatedGuid&lt;T&gt;(this T enumType, Guid relatedGuid)
    where T : Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">enumType</span></td>
        <td><p>Type of the enum to search.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
        <td><span class="parametername">relatedGuid</span></td>
        <td><p>Related Guid to search for.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetAliases_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetAliases*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetAliases_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetAliases(System.Enum)">GetAliases(Enum)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;string&gt; GetAliases(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetBitDepth_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitDepth*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetBitDepth_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitDepth(System.Enum)">GetBitDepth(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.BitDepthAttribute.html">BitDepthAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int? GetBitDepth(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetBitDepths_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitDepths*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetBitDepths_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitDepths(System.Enum)">GetBitDepths(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.BitDepthAttribute.html">BitDepthAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static List&lt;int&gt; GetBitDepths(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetBitRate_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitRate*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetBitRate_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitRate(System.Enum)">GetBitRate(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.MaxBitRateKAttribute.html">MaxBitRateKAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static BitRate? GetBitRate(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="Emby.Media.Model.Types.BitRate.html">BitRate</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetBitsPerPixel_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitsPerPixel*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetBitsPerPixel_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetBitsPerPixel(System.Enum)">GetBitsPerPixel(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.BitsPerPixelAttribute.html">BitsPerPixelAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int? GetBitsPerPixel(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetChannelCount_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetChannelCount*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetChannelCount_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetChannelCount(System.Enum)">GetChannelCount(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.ChannelCountAttribute.html">ChannelCountAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int? GetChannelCount(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetDescription_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetDescription*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetDescription_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetDescription(System.Enum)">GetDescription(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the content of an enum member's <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.descriptionattribute">DescriptionAttribute</a>, or its name in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetDescription(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetDetails_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetDetails*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetDetails_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetDetails(System.Enum)">GetDetails(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the content of an enum member's <a class="xref" href="MediaBrowser.Model.Attributes.DetailsAttribute.html">DetailsAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetDetails(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetEnumId_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetEnumId*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetEnumId_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetEnumId(System.Enum)">GetEnumId(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets an enum identifier like it would be used in code ('MyEnum.MyValue').</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetEnumId(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetFirstAliasOrName_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetFirstAliasOrName*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetFirstAliasOrName_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetFirstAliasOrName(System.Enum)">GetFirstAliasOrName(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the first alias or otherwise the name of the enum entry.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetFirstAliasOrName(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td><p>A string.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetFirstRelatedGuid_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetFirstRelatedGuid*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetFirstRelatedGuid_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetFirstRelatedGuid(System.Enum)">GetFirstRelatedGuid(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the first guid of an enum member's <a class="xref" href="MediaBrowser.Model.Attributes.RelatedGuidAttribute.html">RelatedGuidAttribute</a>, or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid.empty#system-guid-empty">Empty</a> in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Guid GetFirstRelatedGuid(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetIdTag_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIdTag*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetIdTag_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIdTag(System.Enum)">GetIdTag(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.IdTagAttribute.html">IdTagAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetIdTag(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetIsGraphic_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIsGraphic*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetIsGraphic_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIsGraphic(System.Enum)">GetIsGraphic(Enum)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool GetIsGraphic(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetIsHdr_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIsHdr*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetIsHdr_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetIsHdr(System.Enum)">GetIsHdr(Enum)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool GetIsHdr(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetMimeType_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetMimeType*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetMimeType_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetMimeType(System.Enum)">GetMimeType(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the first mime type of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.MimeTypesAttribute.html">MimeTypesAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetMimeType(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetMimeTypes_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetMimeTypes*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetMimeTypes_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetMimeTypes(System.Enum)">GetMimeTypes(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets all mime types of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.MimeTypesAttribute.html">MimeTypesAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;string&gt; GetMimeTypes(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetOrdinal_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetOrdinal*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetOrdinal_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetOrdinal(System.Enum)">GetOrdinal(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="MediaBrowser.Model.Attributes.OrdinalAttribute.html">OrdinalAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int? GetOrdinal(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetRelatedGuids_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetRelatedGuids*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetRelatedGuids_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetRelatedGuids(System.Enum)">GetRelatedGuids(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets all guids of an enum member's <a class="xref" href="MediaBrowser.Model.Attributes.RelatedGuidAttribute.html">RelatedGuidAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;Guid&gt; GetRelatedGuids(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetResRates_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetResRates*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetResRates_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetResRates(System.Enum)">GetResRates(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the value of an enum member's <a class="xref" href="Emby.Media.Model.Attributes.MaxResAndRateAttribute.html">MaxResAndRateAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IList&lt;ResolutionWithRate&gt; GetResRates(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="Emby.Media.Model.Types.ResolutionWithRate.html">ResolutionWithRate</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_GetValue_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetValue*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_GetValue_System_Enum_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.GetValue(System.Enum)">GetValue(Enum)</h4>
  <div class="markdown level1 summary"><p>Gets the content of r the value property of an enum member's <a class="xref" href="MediaBrowser.Model.Attributes.ValueAttribute.html">ValueAttribute</a>, or null in case there is none.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetValue(this Enum enumValue)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_IsAnyOf_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.IsAnyOf*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_IsAnyOf__1_System_Nullable___0____0___" data-uid="Emby.Media.Common.Extensions.EnumExtensions.IsAnyOf``1(System.Nullable{``0},``0[])">IsAnyOf&lt;T&gt;(Nullable&lt;T&gt;, T[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsAnyOf&lt;T&gt;(this T? value, params T[] list)
    where T : struct, Enum</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable</a>&lt;T&gt;</td>
        <td><span class="parametername">value</span></td>
        <td></td>
      </tr>
      <tr>
        <td>T[]</td>
        <td><span class="parametername">list</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Emby_Media_Common_Extensions_EnumExtensions_SupportsBitDepth_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.SupportsBitDepth*"></a>
  <h4 id="Emby_Media_Common_Extensions_EnumExtensions_SupportsBitDepth_System_Enum_System_Int32_" data-uid="Emby.Media.Common.Extensions.EnumExtensions.SupportsBitDepth(System.Enum,System.Int32)">SupportsBitDepth(Enum, Int32)</h4>
  <div class="markdown level1 summary"><p>Checks whether an enum member supports a given bit depth (has a BitDepth attribute matching the provided bitDepth).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SupportsBitDepth(this Enum enumValue, int bitDepth)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.enum">Enum</a></td>
        <td><span class="parametername">enumValue</span></td>
        <td><p>The enum value.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">Int32</a></td>
        <td><span class="parametername">bitDepth</span></td>
        <td><p>The bit depth.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">Boolean</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <div class="sdkversion Release">
                  SDK <span class="sdkVersionSpan"></span>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>On this Page</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to Top</a>
            </span>
            Copyright 2022 © EMBY LLC.  Please see our <a class="lnk" href="https://emby.media/terms.html">terms of use</a> and <a class="lnk" href="https://emby.media/privacy.html">privacy policy</a>.
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../searchIndex.js"></script>
    <script type="text/javascript" src="../../styles/lunr.min.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
